package com.online.teaching.dao;
import com.online.teaching.pojo.Student;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.additional.idlist.SelectByIdListMapper;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/****
 * @Author:admin
 * @Description:Student的Dao
 * @Date 2019/6/14 0:12
 *****/
public interface StudentMapper extends Mapper<Student>, SelectByIdListMapper<Student, Integer> {
    /**
     * 查询有效的学生列表
     * @return
     */
    @Select("SELECT * FROM student WHERE is_valid=1")
    public List<Student>getStudentList();
}
